<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html lang="en">
<head>
<title>船公司代码修改页面</title>
<base href="<%=basePath%>">
<link rel="stylesheet" href="static/ace/css/bootstrap.css" />
<link rel="stylesheet" href="static/ace/css/font-awesome.css" />
<!-- text fonts -->
<link rel="stylesheet" href="static/ace/css/ace-fonts.css" />
<!-- ace styles -->
<link rel="stylesheet" href="static/ace/css/ace.css"
	class="ace-main-stylesheet" id="main-ace-style" />
<script type="text/javascript" src="static/js/jquery-1.7.2.js"></script>
	<script type="text/javascript">
	$(top.hangge());
	
</script>
</head>
<body class="no-skin">
	
	<div class="main-container" id="main-container">
		
		<div class="main-content">
			<div class="main-content-inner">
				<div class="page-content">
					<div class="row">
						<div class="col-xs-12">
								<form  id="shipnoteForm" method="post">
									<div id="zhongxin" style="padding-top: 13px;">
									<table id="table_report" class="table table-striped table-bordered table-hover">
									<tr>
									 <td style="width:79px;text-align: right;padding-top: 13px;">箱主代码:</td>
									 <td><input type="text" name="OWNER_CODE"  value="${pd.OWNER_CODE }" maxlength="32" placeholder="这里输入箱主代码" title="箱主代码" style="width:98%;"/></td>
									<td style="width:79px;text-align: right;padding-top: 13px;">英文名称:</td>
											<td><input type="text" name="ENAME"  value="${pd.ENAME }" maxlength="32" placeholder="这里输入英文名称" title="英文名称" style="width:98%;"/></td>
								   </tr>
								  <tr>
											<td style="width:79px;text-align: right;padding-top: 13px;">箱主名称:</td>
											<td><input type="text" name="OWNER_NAME"  value="${pd.OWNER_NAME }" maxlength="32" placeholder="这里输入箱主名称" title="箱主名称" onblur="hasN('${pd.USERNAME }')" style="width:98%;"/></td>
										    <td style="width:79px;text-align: right;padding-top: 13px;">箱主简称:</td>
											<td><input type="text" name="SHORT_NAME"  value="${pd.SHORT_NAME }" maxlength="32" placeholder="这里输入箱主简称" title="箱主简称" onblur="hasN('${pd.USERNAME }')" style="width:98%;"/></td>
										</tr>
									<tr>
									<td style="width:79px;text-align: right;padding-top: 13px;">是否可用:</td>
									<td>
										<select name="ENABLE" title="是否可用" maxlength="32" style="width:98%;">
										<option value="1" <c:if test="${pd.ENABLE == '1' }">selected</c:if> >是</option>
										<option value="0" <c:if test="${pd.ENABLE == '0' }">selected</c:if> >否</option>
										</select>
									</td>
									 
											<td style="width:79px;text-align: right;padding-top: 13px;">检索码:</td>
											<td><input type="text" name="INDEX_CODE"   value="${pd.INDEX_CODE }"  maxlength="32" placeholder="这里输入检索码" title="检索码" style="width:98%;"/></td>
								   </tr>	
									<tr>
											<td style="width:79px;text-align: right;padding-top: 13px;">渔船公司收付备注:</td>
											<td><input type="text" name="OCE_COLLECT_REMARK" value="${pd.OCE_COLLECT_REMARK }" placeholder="这里输入渔船公司收付备注" maxlength="64" title="收付备注" style="width:98%;"/></td>
										     <td style="width:79px;text-align: right;padding-top: 13px;">渔船公司订舱注意事项:</td>
											<td><input type="text" name="SEA_BOOKING_OPTION"   value="${pd.SEA_BOOKING_OPTION }"  maxlength="32" placeholder="这里输入渔船公司订舱注意事项" title="渔船公司订舱注意事项" style="width:98%;"/></td>
										</tr>
											
								<tr>
									<td style="width:79px;text-align: right;padding-top: 13px;">简单要求:</td>
											<td><input type="text" name="BILL_REQUIREMENT" value="${pd.BILL_REQUIREMENT }" placeholder="这里输入简单要求" maxlength="64" title="简单要求" style="width:98%;"/></td>
								
									  </tr>
								
										<tr>
											<td style="text-align: center;" colspan="10">
												<a class="btn btn-mini btn-primary" onclick="save('${pd.ID}');">保存</a>
												<a class="btn btn-mini btn-danger" onclick="top.Dialog.close();">取消</a>
											</td>
										</tr>
									</table>
									</div>
									<div id="zhongxin2" class="center" style="display:none"><br/><br/><br/><br/><img src="static/images/jiazai.gif" /><br/><h4 class="lighter block green"></h4></div>
								</form>
						</div>
						<!-- /.col -->
					</div>
					<!-- /.row -->
				</div>
				<!-- /.page-content -->
			</div>
		</div>
		<!-- /.main-content -->
	</div>
	
</body> 
<script type="text/javascript">
	function save(ID){	
		$.ajax({
			type:"post",
			url:'<%=basePath%>ship/addship?ID=' + ID,
			data:$("#shipnoteForm").serialize(),
			dataType:"text",
			success:function(data){
				top.Dialog.close()
				window.location.reload();	
			}
			
		})
		
	}
</script>
</html>